function handler(e){
    var el = (e.target||e.srcElement);
    console.log(el.value);
}

var changeSearchTxt = debounce(handler,1000);


document.querySelector("#search").addEventListener("input",changeSearchTxt)